package item;

import static javax.persistence.GenerationType.SEQUENCE;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Version;



public class itsItem {
	
	
	private int id;
	
	private long version;
	
	private String nameitem;
	private itsItemType itemtype;
	private String itemdescription;
	

	itsUsers owners;


	public itsItem(){}
	
	public itsItem(	String name, itsItemType itemtype,String itemdescription){
		this.nameitem = name;
		this.itemtype = itemtype;
		this.itemdescription = itemdescription;
	}	
	
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}


	




	/**
	 * @return the nameitem
	 */
	public String getNameitem() {
		return nameitem;
	}


	/**
	 * @param nameitem the nameitem to set
	 */
	public void setNameitem(String nameitem) {
		this.nameitem = nameitem;
	}


	/**
	 * @return the itemtype
	 */
	public itsItemType getItemtype() {
		return itemtype;
	}


	/**
	 * @param itemtype the itemtype to set
	 */
	public void setItemtype(itsItemType itemtype) {
		this.itemtype = itemtype;
	}


	/**
	 * @return the itemdescription
	 */
	public String getItemdescription() {
		return itemdescription;
	}


	/**
	 * @param itemdescription the itemdescription to set
	 */
	public void setItemdescription(String itemdescription) {
		this.itemdescription = itemdescription;
	}


	/**
	 * @return the owners
	 */
	public itsUsers getOwners() {
		return owners;
	}


	/**
	 * @param owners the owners to set
	 */
	public void setOwners(itsUsers owners) {
		this.owners = owners;
	}
	
}
